package com.yituo.mjworld.mvc.entity.other;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "record_agent_request", schema = "web_mojianworld_server", catalog = "")
public class RecordAgentRequest {
  public static final int STATUS_WAIT = -1;
  public static final int STATUS_PASS = 1;
  public static final int STATUS_NO_PASS = 0;
  private int recordId;
  private String requestUserId;
  private String parentId;
  private String processUserId;
  private Date processDate;
  private Integer processStatus;
  private String processMsg;
  private Date requestDate;

  @Id
  @Column(name = "recordId", nullable = false)
  public int getRecordId() {
    return recordId;
  }

  public void setRecordId(int recordId) {
    this.recordId = recordId;
  }

  @Basic
  @Column(name = "requestUserId", nullable = false, length = 36)
  public String getRequestUserId() {
    return requestUserId;
  }

  public void setRequestUserId(String requestUserId) {
    this.requestUserId = requestUserId;
  }

  @Basic
  @Column(name = "parentId", nullable = false, length = 36)
  public String getParentId() {
    return parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId;
  }

  @Basic
  @Column(name = "processUserId", nullable = false, length = 36)
  public String getProcessUserId() {
    return processUserId;
  }

  public void setProcessUserId(String processUserId) {
    this.processUserId = processUserId;
  }

  @Basic
  @Column(name = "processDate", nullable = false)
  public Date getProcessDate() {
    return processDate;
  }

  public void setProcessDate(Date processDate) {
    this.processDate = processDate;
  }

  @Basic
  @Column(name = "processStatus", nullable = true)
  public Integer getProcessStatus() {
    return processStatus;
  }

  public void setProcessStatus(Integer processStatus) {
    this.processStatus = processStatus;
  }

  @Basic
  @Column(name = "processMsg", nullable = true, length = 36)
  public String getProcessMsg() {
    return processMsg;
  }

  public void setProcessMsg(String processMsg) {
    this.processMsg = processMsg;
  }

  @Basic
  @Column(name = "requestDate", nullable = true)
  public Date getRequestDate() {
    return requestDate;
  }

  public void setRequestDate(Date requestDate) {
    this.requestDate = requestDate;
  }

  @Override
  public int hashCode() {
    int result = recordId;
    result = 31 * result + (requestUserId != null ? requestUserId.hashCode() : 0);
    result = 31 * result + (parentId != null ? parentId.hashCode() : 0);
    result = 31 * result + (processUserId != null ? processUserId.hashCode() : 0);
    result = 31 * result + (processDate != null ? processDate.hashCode() : 0);
    result = 31 * result + (processStatus != null ? processStatus.hashCode() : 0);
    result = 31 * result + (processMsg != null ? processMsg.hashCode() : 0);
    result = 31 * result + (requestDate != null ? requestDate.hashCode() : 0);
    return result;
  }
}
